<?php
// 用户模型
class GoodsSortModel extends CommonModel {
    protected $_link = array(
        'Goods'=>array(
            'mapping_type'    =>HAS_MANY,
            'class_name'    =>'Goods',
            'foreign_key'=>'sortid',
            'mapping_name'=>'goods',
        ),
    );
}
?>